package com.liyang.gulimall.member.feign;

import com.liyang.common.utils.R;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @description: 调用 coupon 服务 接口
 * @author: liyang
 * @date: 2024/1/24 11:31
 **/
@EnableFeignClients("gulimall-coupon")
public interface CouponFeignService {

    /**
     * @description: 优惠卷列表
     * @author: liyang
     * @date: 2024/1/24 11:35
     * @param: params 条件
     * @return: com.liyang.common.utils.R
     **/
    @RequestMapping("/coupon/list")
    R list(@RequestParam Map<String, Object> params);
}
